import request from "@/utils/request";

//test api
// 登录方法
export function login(username, password) {
  const query = {
    username,
    password,
  };
  return request({
    url: "/login",
    method: "get",
    params: query
  });
}

//注册方法
export function register(data){
  return request({
    url:"/register",
    method:"post",
    data:data
  });
}

//认证方法
export function auth(query){
  return request({
    url:"/login/auth",
    method:"get",
    params:query
  });
}